package com.ihisun.tmhcms.core.service.cityservice.impl;

import com.ihisun.tmhcms.core.dao.citydao.AreaVoDao;
import com.ihisun.tmhcms.core.service.cityservice.CityService;
import com.ihisun.tmhcms.core.vo.AreaVo;
import com.ihisun.tmhcms.utils.ResponseVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CityServiceImpl implements CityService {
    @Resource
    AreaVoDao areaVoDao;

    @Override
    public ResponseVo findByCityAll() {
        List<AreaVo> all = areaVoDao.findAll();
        return ResponseVo.ok(all);
    }
}
